import request from '../util/request'

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

export function loadPartnerParkfieldApi(parkfieldId) {
  return request({
    url:baseUrl+ "/lcpartnerparkfield",
    method: "get",
    params: {
      parkfieldId: parkfieldId
    }
  })
}

export function queryPartnerParkfieldApi(form) {
 
  return request({
    url:baseUrl+ '/lcpartnerparkfield/query',
    method: 'post',
    data:form
  });
}

export function addPartnerParkfieldApi(form) {
  return request({
    url:baseUrl+ "/lcpartnerparkfield",
    method: "post",
    data: form
  });
}
export function updatePartnerParkfieldApi(form) {
  return request({
    url:baseUrl+ "/lcpartnerparkfield",
    method: "put",
    data: form
  })
}
export function delApi(row) {
 
  return request({
    url:baseUrl+ '/lcpartnerparkfield/selective',
    method: 'delete',
    data: {
      id:row.id
    }
  });
}

export function loadParkfieldsApi() {
    return request({
    url: baseUrl+ '/lcparkfield',
    methods: 'get'
  });
}
